if __name__ == '__main__':
    # Exception1
    # print(5/0)
#     # print(5/2)
    NumberString  = input("Enter an integer")
    try:
        n = int(NumberString)
        print(n)
    except IOError:
        print("this was not an integer")
    except:
        print("error")